package demo.standard;

public class ConcreteVisitorA implements IVisitor {
    @Override
    public void visitElementA(ConcreteElementA element) {
        System.out.println("访问者A成功访问了元素A");
    }

    @Override
    public void visitElementB(ConcreteElementB element) {
        System.out.println("访问者A成功访问了元素B");
    }
}
